import yaml

class GetData:

    def get(self,path):
        file = open(path,'r',encoding='utf-8')
        data = yaml.load(file, yaml.FullLoader)
        print(data)
        return data

# if __name__ == '__main__':
#     gd = GetData()
#     gd.get('../data/login_success.yaml')